package com.github.tyc1210.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 类描述
 *
 * @author tyc
 * @version 1.0
 * @date 2024-01-08 15:00:08
 */
@ConfigurationProperties(prefix = "spring.dynamic")
public class DynamicDataSourceProperties {
    private Map<String,DataSourceProperties> dataSource = new LinkedHashMap<>();

    public Map<String, DataSourceProperties> getDataSource() {
        return dataSource;
    }

    public void setDataSource(Map<String, DataSourceProperties> dataSource) {
        this.dataSource = dataSource;
    }
}
